package com.ruoyi.omchannel.mapper;

import java.util.List;
import com.ruoyi.omchannel.domain.OmChannel;
import org.apache.ibatis.annotations.Select;

/**
 * 渠道管理Mapper接口
 * 
 * @author ningyi
 * @date 2025-02-11
 */
public interface OmChannelMapper 
{
    /**
     * 查询渠道管理
     * 
     * @param channelId 渠道管理主键
     * @return 渠道管理
     */
    public OmChannel selectOmChannelByChannelId(Long channelId);

    /**
     * 查询渠道管理列表
     * 
     * @param omChannel 渠道管理
     * @return 渠道管理集合
     */
    public List<OmChannel> selectOmChannelList(OmChannel omChannel);

    /**
     * 新增渠道管理
     * 
     * @param omChannel 渠道管理
     * @return 结果
     */
    public int insertOmChannel(OmChannel omChannel);

    /**
     * 修改渠道管理
     * 
     * @param omChannel 渠道管理
     * @return 结果
     */
    public int updateOmChannel(OmChannel omChannel);

    /**
     * 删除渠道管理
     * 
     * @param channelId 渠道管理主键
     * @return 结果
     */
    public int deleteOmChannelByChannelId(Long channelId);

    /**
     * 批量删除渠道管理
     * 
     * @param channelIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmChannelByChannelIds(Long[] channelIds);


    @Select("SELECT channel_id AS channelId,channel_name AS channelName, channel_uuid as channelUuid FROM om_channel  WHERE channel_uuid = #{uuid}")
    OmChannel getInfo(String uuid);
}
